//
//  K_ROOM_ChatController.h
//  K-Music
//
//  Created by CHUN on 16/2/1.
//  Copyright © 2016年 CHUN. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface K_ROOM_ChatController : UIViewController<UITextFieldDelegate,UIAlertViewDelegate>
{
    UIImageView * main_Chat;
}
@property (nonatomic, assign) UIViewController *backView;
@property (nonatomic, strong) NSString* curChatroomId;
@property (nonatomic, strong) NSString* roomname;
@property (nonatomic, strong) NSTimer *timer;
@property (nonatomic, strong) NSTimer *timerNetworkStatistic;
@property (nonatomic, assign) BOOL isCreator;

@property (nonatomic, assign) BOOL isJoin;

-(void)createChatroomWithChatroomName:(NSString*)chatroomName andPassword:(NSString *)roomPwd andSquare:(NSInteger)square andKeywords:(NSString *)keywords andIsAutoClose:(BOOL)isAutoClose andVoiceMod:(NSInteger) voiceMod andAutoDelete:(BOOL) autoDelete andIsAutoJoin:(BOOL) isAutoJoin;

- (void) joinChatroomInRoom:(NSString *)roomNo andPwd:(NSString *)pwd;


-(instancetype)initWithSessionId:(NSString*)K_sessionId;

@end
